package com.yoda.mall.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yoda.mall.model.entity.sms.FlashPromotionProductRelation;

import java.util.List;

public interface FlashPromotionProductRelationApi {
    void addFlashPromotionProductRelation(FlashPromotionProductRelation flashPromotionProductRelation);

    void deleteFlashProductRelationById(Long id);

    Page<FlashPromotionProductRelation> getFlashProductRelationListPage(Long flashPromotionId, Long flashPromotionSessionId, Integer pageNum, Integer pageSize);

    void updateFlashPromotionProductRelation(FlashPromotionProductRelation flashPromotionProductRelation);

    FlashPromotionProductRelation getFlashPromotionProductRelationById(Long id);

    List<Long> getFlashPromotionSessionsIdByFlashPromotionId(Long flashPromotionId);

    Long getCountByFlashPromotionIdAndFlashPromotionSessionId(Long flashPromotionId, Long flashPromotionSessionId);
}
